package com.manager.core.web.freemarker;

import java.io.IOException;

import com.manager.core.web.freemarker.tag.AuthDirective;
import org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer;

import freemarker.template.TemplateException;

/**
 * 标签管理
 * @author H
 */
public class ShiroTagFreeMarkerConfigurer extends FreeMarkerConfigurer {

	@Override
	public void afterPropertiesSet() throws IOException, TemplateException {
		super.afterPropertiesSet();
		this.getConfiguration().setSharedVariable("shiro", new AuthDirective());
	}
}